package com.fh.modules.ems.service.impl;

import com.fh.modules.ems.entity.EmsHomePushProduct;
import com.fh.modules.ems.mapper.EmsHomePushProductMapper;
import com.fh.modules.ems.service.IEmsHomePushProductService;
import com.fh.modules.ems.vo.PushProductQryVo;
import com.fh.modules.pms.model.mobile.ProductListModel;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.fh.common.web.impl.AbstractServiceImpl;

import java.util.List;

/**
 * @Description: 首页推荐商品
 * @author： code generator
 * @date：   2019-09-28
 * @version： V1.0
 */
@Service
public class EmsHomePushProductServiceImpl extends AbstractServiceImpl<EmsHomePushProductMapper, EmsHomePushProduct> implements IEmsHomePushProductService {

    @Autowired
    private EmsHomePushProductMapper emsHomePushProductMapper;
    @Override
    public List<ProductListModel> queryPushProductPage(PushProductQryVo vo) {
        PageHelper.startPage(vo.getPageNo(), vo.getPageSize(),false);
        return emsHomePushProductMapper.queryPushProductPage(vo);
    }
}
